function VideoMenuView(controller) { //}, loginView) {
	View.call(this, controller);
	
	this.getContentViewNode = function() {
		return this.contentViewNode;
	};
	
	this.setContentViewNode = function(contentViewNode) {
		this.contentViewNode = contentViewNode;
	};
	
	this.addMenu = function() {
		var tr = document.createElement("tr");
		tr.className = "menu";
			var leftTd = document.createElement("td");
			leftTd.className = "left-cell";
			tr.appendChild(leftTd);
			
			var homeTd = document.createElement("td");
			homeTd.className = "home";
				var homeButton = new LabelButton(this, "videoSearchEngine()", "Home", "Home");
				homeTd.appendChild(homeButton.tag);
			tr.appendChild(homeTd);
			
//			var uploadTd = document.createElement("td");
//			uploadTd.className = "upload";
//				var uploadButton = new LabelButton(this, "upload()", "Sube tu corto", "Sube tu corto");
//				uploadTd.appendChild(uploadButton.tag);
//			tr.appendChild(uploadTd);
//			
//			var sugerencesTd = document.createElement("td");
//			sugerencesTd.className = "sugerences";
//				var sugerencesButton = new LabelButton(this, "sugerences()", "Sugerencias", "Sugerencias");
//				sugerencesTd.appendChild(sugerencesButton.tag);
//			tr.appendChild(sugerencesTd);
			
			var contactTd = document.createElement("td");
			contactTd.className = "contact";
				contactButton = new LabelButton(this, "contact()", "Contacto", "Contacto");
				contactTd.appendChild(contactButton.tag);
			tr.appendChild(contactTd);
			
			var rightTd = document.createElement("td");
			  rightTd.className = "right-cell";
			tr.appendChild(rightTd);
		this.tbody.appendChild(tr);
	};
	
	this.videoSearchEngine = function() {
		var videoSearchEngineView = this.getVideoSearchEngineView();
		if (videoSearchEngineView == null) {
//			this.controller.callMethod([this, "videoSearchEngineDone"], "getVideoSearchEngineIdentifier", {}, Controller.JSON);
			this.videoSearchEngineDone();
		} else {
			this.displayView(videoSearchEngineView);
		}
	};
	
	this.videoSearchEngineDone = function(controller) {
		var videoSearchEngineController = new Controller("api.php", "VideoSearchEngineController");//controller.uri, controller.name, controller.id);
		var videoSearchEngineView = new VideoSearchEngineView(videoSearchEngineController);
		
		this.setVideoSearchEngineView(videoSearchEngineView);
		
		this.displayView(videoSearchEngineView);
	};
	
//	this.upload = function() {
//		var uploadView = this.getUplaodView();
//		if (uploadView == null) {
//			this.controller.callMethod([this, "uploadDone"], "getUploadIdentifier", {}, Controller.JSON);
//		} else {
//			this.displayView(uploadView);
//		}
//	};
	
//	this.uploadDone = function(controller) {
//		var loginView = this.getLoginView();
//		var uploadController = new Controller(controller.uri, controller.name, controller.id);
//		var uploadView = new UploadView(uploadController, loginView);
//		
//		this.setUploadView(uploadView);
//		
//		this.displayView(uploadView);
//	};
	
	this.displayView = function(view) {
		while (this.contentViewNode.hasChildNodes()) {
			this.contentViewNode.removeChild(this.contentViewNode.firstChild);
		}
		
		var tr = document.createElement("tr");
		  var td = document.createElement("td");
		    var tag = view.getTag();
		    td.appendChild(view.tag);
		  tr.appendChild(td);
		this.contentViewNode.appendChild(tr);
	};
	
//	this.sugerences = function() {
//		alert("En construcción");
//	};
	
	this.contact = function() {
		var contactView = this.getContactView();
		if (contactView == null) {
			contactView = new ContactView(null);
			this.setContactView(contactView);
		}
		
		this.displayView(contactView);
	};
	
	this.setController = function(controller) {
		this.controller = controller;
	};
	
	this.getVideoSearchEngineView = function() {
		return this.videoSearchEngineView;
	};
	
	this.setVideoSearchEngineView = function(videoSearchEngineView) {
		this.videoSearchEngineView = videoSearchEngineView;
	};
	
//	this.getUplaodView = function() {
//		return this.uploadView;
//	};
//	
//	this.setUploadView = function(uploadView) {
//		this.uploadView = uploadView;
//	};
	
	this.getContactView = function() {
		return this.contactView;
	};
	
	this.setContactView = function(contactView) {
		this.contactView = contactView;
	};
	
//	this.getLoginView = function() {
//		return this.loginView;
//	};
//	
//	this.setLoginView = function(loginView) {
//		this.loginView = loginView;
//	};
	
	this.tag = document.createElement("table");
	this.tag.className = "VideoMenuView";
	this.tbody = document.createElement("tbody");
	this.tag.appendChild(this.tbody);
	
	this.contentViewNode = null;
	
//	this.uploadView = null;
	this.contactView = null;
	this.videoSearchEngineView = null;
//	this.loginView = null;
	
	this.addMenu();
//	this.setLoginView(loginView);
}